package kr.saeildamil.androidstudty.ch17;

import java.util.ArrayList;

import android.app.Activity;
import android.content.res.Configuration;
import android.os.Bundle;
import android.widget.Toast;

public class SaveCurve2 extends Activity {
	private MyView vw;
	ArrayList<Vertex> arVertex;
	private int count;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		vw = new MyView(this, arVertex);
		setContentView(vw);
	}

	@Override
	public void onConfigurationChanged(Configuration newConfig) {

		super.onConfigurationChanged(newConfig);

		count++;
		Toast.makeText(this, "count=" + count, Toast.LENGTH_LONG).show();
	}

}
